differentiation shortcut trick